package com.organ.base.autotask;

import java.util.Date;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @param cron
 */
@Configuration
@EnableScheduling
public class DeviceDataSyncTask {
	
	/**
	 * @param 1分钟执行一次任务
	 * @throws Exception
	 */
	@Scheduled(cron = "0 0/1 * * * ?")
	private void organServiceMarketCalculate() throws Exception {
		System.out.println("执行静态获取数据日期: " + new Date());
		System.err.println("执行静态定时任务时间: " + new Date());
	}
}
